import request from '@/utils/request'

// 查询项目信息列表
export function analysis(query) {
  return request({
    url: '/biz/dashboard/analysis',
    method: 'post',
    data: query
  })
}

export function analysisProject(query) {
  return request({
    url: '/biz/dashboard/analysisProject',
    method: 'post',
    data: query
  })
}

export function analysisSupplier(query) {
  return request({
    url: '/biz/dashboard/analysisSupplier',
    method: 'post',
    data: query
  })
}

export function analysisMarket(query) {
  return request({
    url: '/biz/dashboard/analysisMarket',
    method: 'post',
    data: query
  })
}

export function analysisCustomer(query) {
  return request({
    url: '/biz/dashboard/analysisCustomer',
    method: 'post',
    data: query
  })
}

// 项目统计（概览）
export function projectOverview(query) {
  return request({
    url: '/biz/statistics/project/overview',
    method: 'get',
    params: query
  })
}

// 项目类型统计
export function projectTypeAnalysis(query) {
  return request({
    url: '/biz/statistics/project/projectTypeList',
    method: 'get',
    params: query
  })
}
// 项目进度统计
export function projectProgressAnalysis(query) {
  return request({
    url: '/biz/statistics/project/projectProgressList',
    method: 'get',
    params: query
  })
}

// 销售合同统计状态
export function salesContractStatusAnalysis(query) {
  return request({
    url: '/biz/statistics/project/salesContractStatusList',
    method: 'get',
    params: query
  })
}

// 累计未回款统计列表
export function accumulatedOutstandingPaymentsList(query) {
  return request({
    url: '/biz/statistics/project/accumulatedOutstandingPaymentsList',
    method: 'get',
    params: query
  })
}



// 项目汇总统计列表
export function projectSummaryList(query) {
  return request({
    url: '/biz/statistics/project/projectSummaryList',
    method: 'post',
    data: query
  })
}

//项目明细报表
export function projectDetailReport(query) {
  return request({
    url: '/biz/statistics/project/projectDetailReport',
    method: 'post',
    data: query
  })
}

// 供应商概况统计
export function supplierOverviewAnalysis(query) {
  return request({
    url: '/biz/statistics/supplier/overview',
    method: 'get',
    params: query
  })
}
// 供应商类型统计
export function supplierTypeAnalysis(query) {
  return request({
    url: '/biz/statistics/supplier/supplierType',
    method: 'get',
    params: query
  })
}

// 供应商委外合同统计
export function outsourcingContractAnalysis(query) {
  return request({
    url: '/biz/statistics/supplier/supplierOutsourcingContractList',
    method: 'get',
    params: query
  })
}

// 市场拓展概况统计
export function marketExpansionOverview(query) {
  return request({
    url: '/biz/statistics/marketExpansion/marketExpansionOverview',
    method: 'get',
    params: query
  })
}

// 市场拓展概况统计
export function marketExpansionExpenses(query) {
  return request({
    url: '/biz/statistics/marketExpansion/marketExpansionExpenses',
    method: 'get',
    params: query
  })
}

// 客户概况统计
export function customerOverview(query) {
  return request({
    url: '/biz/statistics/customer/customerOverview',
    method: 'get',
    params: query
  })
}

// 供应商汇总统计列表
export function supplierSummaryList(query) {
  return request({
    url: '/biz/statistics/supplier/supplierSummaryList',
    method: 'post',
    data: query
  })
}
// 供应商明细报表
export function supplierDetailReport(query) {
  return request({
    url: '/biz/statistics/supplier/supplierDetailReport',
    method: 'post',
    data: query
  })
}


// 市场拓展汇总统计列表
export function marketExpansionSummaryList(query) {
  return request({
    url: '/biz/statistics/marketExpansion/marketExpansionSummaryList',
    method: 'post',
    data: query
  })
}

// 市场拓展明细报表
export function marketExpansionDetailReport(query) {
  return request({
    url: '/biz/statistics/marketExpansion/marketExpansionDetailReport',
    method: 'post',
    data: query
  })
}


// 客户关系汇总
export function customerSummaryList(query) {
  return request({
    url: '/biz/statistics/customer/customerSummaryList',
    method: 'post',
    data: query
  })
}
// 客户关系明细报表
export function customerDetailReport(query) {
  return request({
    url: '/biz/statistics/customer/customerDetailReport',
    method: 'post',
    data: query
  })
}
